<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="orderList.title"/></title>
    <meta name="heading" content="<fmt:message key='orderList.heading'/>"/>
    <meta name="menu" content="OrderMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editOrder"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="orders" class="table" requestURI="" id="orderList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editOrder" media="html"
        paramId="id" paramProperty="id" titleKey="order.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="order.id"/>
	<display:column property="member.id"          sortable="true" titleKey="order.member.id"/>
	<display:column property="status"             sortable="true" titleKey="order.status"/>
	<display:column property="orderDate"          sortable="true" titleKey="order.orderDate"/>
	<display:column property="deliveryAddress.id" sortable="true" titleKey="order.deliveryAddress.id"/>
	<display:column property="invoice.id"         sortable="true" titleKey="order.invoice.id"/>
	<display:column property="paymentInfo.id"     sortable="true" titleKey="order.paymentInfo.id"/>
	<display:column property="shippingInfo.id"    sortable="true" titleKey="order.shippingInfo.id"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="orderList.order"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="orderList.orders"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="orderList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="orderList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="orderList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editOrder"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("orderList");
</script>